<%-- 
    Document   : access
    Created on : 7.5.2012, 13:07:46
    Author     : Ari Paloniitty
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Access</title>
    </head>
    
    <body>
        
        <h2>Web-ohj-proj-aa</h2></br>
        <h3>User Access</h3>
        
        <!--<input type="text" name="user" /></br>
        <input type="text" name="user" /></br>
        <input type="text" name="user" /></br>
        <input type="text" name="user" /></br>-->
        
        <c:forEach var="item" items="${user}">
            <form method="post" action="delete.htm">
                <tr><td align="left" width="600" style="background-color:#F4F6BF;">
                    <font size="4" face="Lucida Sans Unicode" color="#444455"><b><c:out value="${item.email}" /></b></font>
                    <input type="hidden" name="id" value="${item.id}"/>
                </td><td align="right" width="60" style="background-color:#F4F6BF;">
                    <input type="submit" value="Delete" style="color:#FFFFFF; background-color:#DD3300;"/>
                </td></tr>
            </form>
        </c:forEach><br />
        
        <form name="form_create" action="register.htm" method="get">
            <input type="submit" value="Create New User" />
        </form>
        </br>
        <a href="http://localhost:8080/web-ohj-proj-aa/login.htm">Log out</a>
        
    </body>
</html>
